var x1 >=0 ;
var x2 >=0 ;
var x3 >=0 ;
var x4 >=0 ;
var x5 >=0 ;
var x6 >=0 ;
var x7 >=0 ;
var x8 >=0 ;
var x9 >=0 ;
var x10 >=0 ;
maximize obj: 0.0  + 5.0 * x1   + 5.0 * x2   -2.0 * x3   + 3.0 * x4   -5.0 * x5 ;
c1: x6 = 0.0  + 3.0 * x1  -8.0 * x2  + 10.0 * x3  -10.0 * x4  -3.0 * x5 ;
c2: x7 = -3.0  + 7.0 * x1  -10.0 * x2  + 6.0 * x3  + 4.0 * x4  -10.0 * x5 ;
c3: x8 = 1.0  -5.0 * x1  + 2.0 * x2  -4.0 * x3  -2.0 * x4  -9.0 * x5 ;
c4: x9 = -1.0  + 0.0 * x1  -2.0 * x2  + 10.0 * x3  -9.0 * x4  -1.0 * x5 ;
c5: x10 = 3.0  -5.0 * x1  -4.0 * x2  -6.0 * x3  + 7.0 * x4  + 6.0 * x5 ;
solve; 
display 0.0  + 5.0 * x1   + 5.0 * x2   -2.0 * x3   + 3.0 * x4   -5.0 * x5 ;
 
 end; 
